package com.imooc.aspectJ.demo1;

/**
 * 目标类
 * @author wangc
 */
public class ProductDao {
    public void save() {
        System.out.println("保存商品...");
    }

    public String update() {
        System.out.println("修改商品...");
        return "Hello!!!";
    }

    public void delete() {
        System.out.println("删除商品...");
    }

    public void fianOne() {
        System.out.println("查询一个商品...");
        /**
         *异常抛出通知演示
         */
        //int i = 1/0;
    }

    public void fianAll() {
        System.out.println("查询所有商品...");
    }
}
